define(function (require, exports, module) {
    var template = require("arttemplate");

    template.helper("judgeYear", function (str) {
        var nowDate = new Date().getFullYear();
        if (nowDate == str) {
            return true;
        } else {
            return false;
        }
    })

    template.helper("getMonth",function(str){
      return  str.toString().slice(-2);
    })

    template.helper("getKeyName",function(str1,str2){
        return str1+"."+str2;
    })

    template.helper("judageAreaName",function(str){
        if(str == 0 || str == null){
            return "未分类";
        }else{
            return str;
        }
    })

    template.helper("formatDate",function(str){
        return str.substring(0,11);
    })
})